<!doctype html>
<html>
<style>
    .required {
        color: #ff2222;
    }

</style>
<head>
    <include file="public/head"/>
    <title>完成</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:cmf_plugin_url('DiyAdminForm://AdminIndex/tableIndex')}">数据表</a></li>
        <li><a href="{:cmf_plugin_url('DiyAdminForm://AdminIndex/setOptions',['t'=>$tableFullName])}">表单设置</a></li>
        <li class="active"><a>生成结果</a></li>

    </ul>
    <div class="well margin-top-10 text-danger">
        <h4 class="text-primary">数据表:{$tableFullName}</h4>
        {$result|default=''}
    </div>




</div>
<include file="public/scripts"/>
<script>
    //显示效果预览
    function showPreview(Id) {
        if(Id === 1){
            //标签页效果预览
            var text = $('#tableTag');
            txt = text.val();
            openIframeLayer("{:cmf_plugin_url('DiyAdminForm://AdminPreview/previewTabIndex')}?id=" + Id+"&txt="+txt, '效果预览', {
                area: ['600px', '400px'],
                btn: ['确定'],//, '取消'
                yes: function (index, layero) {
                    //do something
                    var iframeWin          = window[layero.find('iframe')[0]['name']];
                    //var selectedCategories = iframeWin.confirm();
                    layer.close(index); //如果设定了yes回调，需进行手工关闭
                }
            });
        }
    }
</script>
</body>
</html>